import * as L from 'leaflet'
export const addWmsLayer = (map: L.Map, url: string, options?: L.WMSOptions) => {
    L.tileLayer.wms(url, options).addTo(map);
}
export const addimageOverlay = (map: L.Map, url: string, bounds: L.LatLngBoundsExpression, options?: L.ImageOverlayOptions) => {
    L.imageOverlay(url, bounds, options).addTo(map);
}

export const addTileLayer = (map: L.Map, url: string, options?: L.TileLayerOptions) => {
    L.tileLayer(url, options).addTo(map);
}
export const addvideoOverlay = (map: L.Map, video: string | string[] | HTMLVideoElement, bounds: L.LatLngBoundsExpression, options?: L.VideoOverlayOptions) => {
    L.videoOverlay(video, bounds, options).addTo(map);
}
